package com.qhg.saas_server.mapper;

import com.qhg.saas_server.pojo.Department;
import com.qhg.saas_server.pojo.dto.DepartmentDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DepartmentMapper {
    //查询所有部门
    List<DepartmentDto> SelectAllDepartment();
    //根据Id搜索部门信息
    Department SelectDyId(Integer departId);
    //插入部门
    void InsertDepartment(Department department);
    //修改状态
    void UpdateDepartmentStatus(@Param("departStatus") Integer departStatus, @Param("departId") Integer departId);
    //通过Id修改部门信息
    void UpdataDepartmentById(Department department);
    //删除
    void DeleteDepartmentById(Integer departId);
}
